package com.synjones.wschool.face.mapper;

import com.synjones.wschool.face.domain.OrderMealItem;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * Created by 24398 on 2018/7/20.
 */
public interface OrderMealItemMapper {
    List<OrderMealItem> listOrderMealItem(@Param("userId") Long userId, @Param("userSourceId") Integer userSourceId,@Param("beginDate") Date beginDate, @Param("endDate") Date endDate);
    int deleteByPrimaryKey(Long id);

    int insert(OrderMealItem record);

    int insertSelective(OrderMealItem record);

    OrderMealItem selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(OrderMealItem record);

    int updateByPrimaryKey(OrderMealItem record);

    OrderMealItem selectOne(@Param("userId") Long userId, @Param("userSourceId") Integer userSourceId, @Param("orderMealId") Long orderMealId);
}
